<!--
 MIT License

 Copyright (c) 2020-2025 Ivo Steinbrecher

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 SOFTWARE.
  -->
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <script src="../js/CSInterface.js"></script>
        <script src="../js/jquery-3.7.1.min.js"></script>
        <script src="../js/auto_generated.js"></script>
        <script src="../js/common.js"></script>
        <script src="../js/main_options.js"></script>
        <link id="hostStyle" rel="stylesheet" href="../css/latex2ai.css" />

        <style></style>
    </head>
    <body>
        <p><b>LaTeX2AI information</b></p>
        <div class="spread_over_width">
            <label>Version</label>
            <label id="l2a_version">x.x.x</label>
        </div>
        <br />
        <div class="spread_over_width">
            <label>Git SHA</label>
            <label class="allow_user_select" id="l2a_git_sha">dummy</label>
        </div>
        <hr />
        <p><b>Global LaTeX options</b></p>
        <div class="spread_over_width">
            <label>Engine</label>
            <select id="latex_engine">
                <option value="pdflatex">pdflatex</option>
                <option value="lualatex">lualatex</option>
                <option value="xelatex">xelatex</option>
            </select>
        </div>
        <br />
        <label>TeX command line options</label>
        <br />
        <input class="label_almost_full_width" type="text" id="tex_options" />
        <br />
        <br />
        <label id="tex_folder_label">dummy</label>
        <br />
        <div class="spread_over_width">
            <input
                class="label_almost_full_width"
                type="text"
                id="tex_folder"
            />
            <input type="submit" id="button_folder_tex" value="..." />
        </div>
        <br />
        <label>Ghostscript command</label>
        <br />
        <div class="spread_over_width">
            <input
                class="label_almost_full_width"
                type="text"
                id="gs_command"
            />
            <input type="submit" id="button_command_gs" value="..." />
        </div>
        <br />
        <hr />
        <p><b>Item create / edit</b></p>
        <label>Keyboard shortcut to finish item create / edit dialog</label
        ><br />
        <input
            type="radio"
            name="item_ui_finish_on_enter"
            id="item_ui_finish_on_shift_enter"
            checked
        />
        <label>Shift+Enter</label>
        <input
            type="radio"
            name="item_ui_finish_on_enter"
            id="item_ui_finish_on_enter"
        />
        <label>Enter (Shift+Enter for newline)</label>
        <br />
        <hr />
        <p><b>LaTeX2AI label directory</b></p>
        <label>Directory to store the pdf labels of LaTeX2AI items</label><br />
        <input
            type="radio"
            name="label_strategy"
            id="label_strategy_temp"
            checked
        />
        <label>Temporary directory (default)</label>
        <br />
        <input type="radio" name="label_strategy" id="label_strategy_local" />
        <label>Local "links" directory (legacy option)</label>
        <br />
        <hr />
        <p><b>Warnings</b></p>
        <input type="checkbox" id="warning_save_boundary_box" />
        <label>On "Save to PDF", if there are stretched items</label>
        <br />
        <input type="checkbox" id="warning_save_illustrator" />
        <label>On "Save to PDF", if Illustrator file is not saved</label>
        <hr />
        <p><b>LaTeX2AI document information</b></p>
        <label>LaTeX2AI header</label>
        <br />
        <div class="spread_over_width">
            <input type="text" id="header_label" style="width: 84%" readonly />
            <input type="submit" id="button_header" value="Open" />
        </div>
        <hr />
        <div class="spread_over_width">
            <input
                class="button_third"
                type="submit"
                id="button_default"
                value="Default values"
            />
            <input
                class="button_third"
                type="submit"
                id="button_save_and_exit"
                value="Save and exit"
            />
            <input
                class="button_third"
                type="submit"
                id="button_cancel"
                value="Cancel"
            />
        </div>
    </body>
</html>
